<?php
/**
 * Created by PhpStorm.
 * User: ybjaa
 * Date: 2017/4/27
 * Time: 9:56
 */

namespace App\Http\Middleware;

use App\Business\DataLog\DataBaseStatic;
use Closure;

/**
 * 记录请求日志的
 * Class LogRequest
 * @package App\Http\Middleware
 */
class LogDataBase
{

    public function handle($request, Closure $next)
    {
        //记录http请求
        $r=$next($request);

        //数据库日志
        DataBaseStatic::GetLogQueues();

        return $r;
    }

}